<br/>
<fieldset>
  <legend>[房间安排] 信息摘要</legend>
  <br/>
  <table>
    <tr>
      <td width="300">
        <%
          rooms = event.rooms
          room_groups=rooms.find(:all,:select=>'room_category,count(room_category) as count',:group=>'room_category')
        %>
        共有  <b>
        <%=link_to_remote " [#{rooms.size.to_s}] " + image_tag("blank.png",:title => "查看概要",:class=>"about_item"),:update=>"show_rooms",:url=>{:controller=>"events",:action=>"query_rooms",:id=>"#{event.id}"},:complete=>"jQuery('#show_rooms').show('fold')"%>
        </b>  套房间<p/><br/>
        已有  <b><%=event.checked_in.size%></b>  人入住，尚有  <b><%=event.unchecked_in.size%></b>  人没有入住
        <br/>
        <%room_groups.each do |room_group|%>
          <br/><li> <b><%=room_group.room_category%></b>
          间:
          <b>
          <%=link_to_remote " [#{room_group.count}] " + image_tag("blank.png",:title => "查看概要",:class=>"about_item"),:update=>"show_rooms",:url=>{:controller=>"events",:action=>"query_rooms",:id=>"#{event.id},#{room_group.room_category}"},:complete=>"jQuery('#show_rooms').show('fold')"%></b>
          套</li>
          <br/>
        <%end%>
        <br/>
      </td>
      <td>
        <br/>
        <div id="show_rooms" class="ui-widget-content ui-corner-all"></div>
      </td>
    </tr>
  </table>
<br/>
<div style="float:right">
    <%=link_to "管理房间信息",event_rooms_path(:event_id=>event.id)%>
  </div>
</fieldset>